<?php
namespace Admin\Controller;
use Common\Controller\BasicController;
/**
 * 系统配置控制器
 */
class SysConfigController extends BasicController
{
  public function index(){
    if(IS_POST){
      $info = I('post.');
      if($info){
        F('Web_conf',$info);
      }
      if(F('Web_conf')){
        return ajaxReturn(200,'更新成功');
      }else{
        return ajaxReturn(400,'更新失败，请重试');
      }
    }
    $info = F('Web_conf');
    $this->assign('conf',$info);
    $this->display();
  }
}
